﻿namespace ZenSystemService.Api.Entities
{
    /// <summary>
    /// 用户数据
    /// </summary>
    public class User
    {
        public int UserId { get; set; }
        public string? Username { get; set; }
        public string? PasswordHash { get; set; }
        public string? EncryptedPassword { get; set; }
        public ICollection<UserRole> UserRoles { get; set; } = new HashSet<UserRole>();
        public int? InstitutionId { get; set; }
        public Institution? Institution { get; set; }
        
        public string? UserType { get; set; }
   
        public string? Remark { get; set; }
        public string? RealName { get; set; }
        public string? Email { get; set; }
        public string? Enabled { get; set; }
        public string? Gender { get; set; }
        public string? AvatarUrl { get; set; }
        public DateTime? LastLoginDate { get; set; }
        public DateTime? LastModifyPwdDate { get; set; }
        public string? Address { get; set; }
        public string? Token { get; set; }
        public int? CreatedUserID { get; set; }
        public DateTime? CreatedDate { get; set; }
        public string? Mobile { get; set; }
        public int? ModifiedUserID { get; set; }
        public DateTime? ModifiedDate { get; set; }


        /// <summary>
        /// 教练ID
        /// </summary>
        public int? CoachId { get; set; }
        public User? Coach { get; set; }


        /// <summary>
        /// 父用户ID
        /// </summary>
        public int? ParentUserId { get; set; }


        
        public DateTime? Birthday { get; set; }


        /// <summary>
        /// 所在地ID
        /// </summary>
        public int AreaID { get; set; }


        /// <summary>
        /// 身高
        /// </summary>
        public int Height { get; set; }
        


        /// <summary>
        /// 体重
        /// </summary>
        public int Weight { get; set; }
        
    }

    /// <summary>
    /// 人物关系表
    /// </summary>
    public class TraineeCharacterRelation
    { 
        public int TraineeCharacterRelationId { get; set; }

        public int ParentAccountUserId { get; set; }

        public int SubAccountUserId { get; set; }

        public int TraineeRelationId { get; set; }

        public string Remark { get; set; }
    }



}